package asociar;

<%-- 
    Document   : AsociarGarantia
    Created on : 29/05/2009, 10:36:43 PM
    Author     : Hiro
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>

<f:view>

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Garantias</title>
    </head>
    <body>
        <h1>Asociar Garantia</h1>

        <h:form>
        <h:panelGrid columns ="2">

       <h:outputLabel value="DNI" for="txtDni"    />
        <h:inputText id="txtDni" size ="18" value="Ingrese DNI" />

        <h:commandButton id="btnBuscar" value="Buscar Garantias" />
                <h:commandButton id="btnCancelar" value="Cancelar" />


<h:dataTable id="tblGarantias" value ="Garantias" var= "item" border="4">
                <h:column>

                    <f:facet name="header"><h:outputText value = "DNI"/></f:facet>

                    <h:outputText value="44801805" />
                </h:column>

                <h:column>
                    <f:facet name="header"><h:outputText value ="Nombre"/></f:facet>
                    <h:outputText value="Hiro " />

                 </h:column>

                 <h:column>
                    <f:facet name="header"><h:outputText value ="Apellidos"/></f:facet>
                    <h:outputText value=" Gushiken Salas  " />

                 </h:column>

                  <h:column>
                    <f:facet name="header"><h:outputText value ="Tipo Garantia"/></f:facet>
                    <h:outputText value="Hipotecaria" />

                 </h:column>
                 <h:column>
                    <f:facet name="header"><h:outputText value ="Garantia"/></f:facet>
                    <h:outputText value="001" />

                 </h:column>

                   <h:column>
                    <f:facet name="header"><h:outputText value ="Saldo"/></f:facet>
                    <h:outputText value="200000" />

                 </h:column>

                  <h:column>
                    <f:facet name="header"><h:outputText value ="Fecha Registro"/></f:facet>
                    <h:outputText value="03-12-2008"  />

                 </h:column>

                 <h:column>
                    <f:facet name="header"><h:outputText value ="Fecha Vencimiento"/></f:facet>
                    <h:outputText value="03-12-2009" />

                 </h:column>

            </h:dataTable>

       <h:commandButton id="btnSeleccionar" value="Seleccionar Garantia" />
                
        <h:outputLabel value="Codigo Credito" for="txtCredito"    />
        <h:inputText id="txtCredito" size ="18" value="Codigo Credito" />

        <h:dataTable id="tblCreditos" value ="Creditos" var= "item" border="4">

            <h:column>

                    <f:facet name="header"><h:outputText value = "Codigo"/></f:facet>

                    <h:outputText value="001" />
                </h:column>

        <h:column>
            <f:facet name="header"> <h:outputText value = "Monto"/></f:facet>
            <h:outputText value="20000" />
        </h:column>


        </h:dataTable>


            <h:commandButton id="btnAsociar" value="Asociar" />
        </h:panelGrid>
        </h:form>


    </body>
</html>
</f:view>